//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-03A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Garth Brooks','The Colosseum At Caesars Palace','Las Vegas, NV','Saturday','4/27/2024','8:00 PM','5719983','Garth-Brooks-4-27-2024'],['Garth Brooks','The Colosseum At Caesars Palace','Las Vegas, NV','Sunday','4/28/2024','8:00 PM','5719984','Garth-Brooks-4-28-2024'],['Garth Brooks','The Colosseum At Caesars Palace','Las Vegas, NV','Thursday','5/2/2024','8:00 PM','5719985','Garth-Brooks-5-2-2024'],['Maxwell Mortgage Legends Concert: Brooks and Dunn & Garth Brooks Tributes','Paradise Coast Sports Complex','Naples, FL','Friday','5/3/2024','5:30 PM','6265731','Maxwell-Mortgage-Legends-Concert--Brooks-and-Dunn---Garth-Brooks-Tributes-5-3-2024'],['Garth Brooks','The Colosseum At Caesars Palace','Las Vegas, NV','Saturday','5/4/2024','8:00 PM','5719986','Garth-Brooks-5-4-2024'],['Garth Brooks','The Colosseum At Caesars Palace','Las Vegas, NV','Sunday','5/5/2024','8:00 PM','5719988','Garth-Brooks-5-5-2024'],['Garth Brooks','The Colosseum At Caesars Palace','Las Vegas, NV','Wednesday','6/26/2024','8:00 PM','5719989','Garth-Brooks-6-26-2024'],['Garth Brooks','The Colosseum At Caesars Palace','Las Vegas, NV','Friday','6/28/2024','8:00 PM','5719990','Garth-Brooks-6-28-2024'],['Garth Brooks','The Colosseum At Caesars Palace','Las Vegas, NV','Saturday','6/29/2024','8:00 PM','5719991','Garth-Brooks-6-29-2024'],['Garth Brooks','The Colosseum At Caesars Palace','Las Vegas, NV','Wednesday','7/3/2024','8:00 PM','5719992','Garth-Brooks-7-3-2024']],'"garth brooks"','https://www.ticketnetwork.com');